<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <%        HttpSession s = request.getSession();
        if (s.getAttribute("full_name") != null) {

        } else {
            response.sendRedirect("login.jsp");
        }
    %>    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link href="css/styleindexsv.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="css/coin-slider.css" />
        <script type="text/javascript" src="js/cufon-yui.js"></script>
        <script type="text/javascript" src="js/cufon-ptsans.js"></script>
        <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
        <script src="js/script_1.js" type="text/javascript"></script>
        <script type="text/javascript" src="js/coin-slider.min.js"></script>        

        <!--          <link href="css/stylefb.css" rel="stylesheet" type="text/css"/>-->
        <!-- Chu chuyen dong-->
        <script language="JavaScript" type="text/javascript">
            window.setInterval('settime()', 1000);

            st = "Supportive Learning ! ";
            function chuchuyendong() {
                //lay ki tu dau tien 
                ch = st.charAt(0);
                //lay 1 chuoi con duoc cat tu vi tri thu 2 den het chuoi
                stcon = st.substring(1);
                //ghep
                st = stcon + ch;
                //in chuoi
                document.title = st;
            }
            window.setInterval('chuchuyendong()', 500);
        </script>
        <!-- end chu chuyen dong-->
    </head>
    <body>

        <div class="main">
            <div class="header">
                <div class="header_resize">
                    <div class="logo">
                        <h1><a href="index.html"><span>Supportive</span> <small>Learning</small></a></h1>
                    </div>
                    <div class="menu_nav">
                        <ul>
                            <li><a href="student.jsp?page=listAssign"><span>ASSIGNMENT</span></a></li>
                            <li><a href="student.jsp?page=listClass"><span>CLASS</span></a></li>
                            <li><a href="student.jsp?page=listfaq"><span>FAQ</span></a></li>
                            <li><a href="student.jsp?page=listFB"><span>FEEDBACK</span></a></li>
                            <li><a href="student.jsp?page=changepassst"><span>CHANGE PASSWORD</span></a></li>
                            <li><a href="logout.jsp">LOG OUT</a></li>
                        </ul>
                    </div>
                    <div class="clr"></div>
                    <div class="slider">
                        <div id="coin-slider"><a href="#"><img src="images/slide1.jpg" width="960" height="313" alt="" /></a> <a href="#"><img src="images/slide2.jpg" width="960" height="313" alt="" /></a> <a href="#"><img src="images/slide3.jpg" width="960" height="313" alt="" /></a></div>
                        <div class="clr"></div>
                    </div>
                    <div class="clr"></div>
                </div>
            </div>
            <div class="content">
                <div class="content_resize">
                    <div class="mainbar">
                        <div class="article">
                            <%
                                HttpSession ss = request.getSession();
                                String name = ss.getAttribute("full_name").toString();
                            %>
                            <h2><span>Welcome:  <span style="color: red"> <%=name%> </span></span></h2>
                            <p class="infopost">Posted <span class="date">on 20 Nov 2014</span> by 
                                <a href="#">Class</a></p>


                            <%    String page1 = request.getParameter("page");
                                if (page1 != null) {
                                    if (page1.equals("home")) {%>
                            <%@include  file="welcome.jsp" %>              
                            <% } else if (page1.equals("listfaq")) {%> 
                            <%@include  file="page/pg_FAQ/showFAQ.jsp" %>              
                            <% } else if (page1.equals("FAQdetail")) {%> 
                            <%@include  file="page/pg_FAQ/DetailFAQ.jsp" %>  
                            <% } else if (page1.equals("listClass")) {%> 
                            <%@include  file="page/pg_student/list_classOfstudent.jsp" %>  
                            <% } else if (page1.equals("listAssign")) {%> 
                            <%@include  file="page/pg_student/list_assignOfstudent.jsp" %>  
                            <% } else if (page1.equals("createFB")) {%> 
                            <%@include  file="page/pg_feedback/create_feedback.jsp" %>  
                            <% } else if (page1.equals("listFB")) {%> 
                            <%@include  file="page/pg_feedback/listFeedBackById.jsp" %>  
                            <% } else if (page1.equals("changepassst")) {%> 
                            <%@include  file="page/pg_student/change_pass_student.jsp" %>  
                            <% }
                            } else {%>                        
                            <%@include  file="page/pg_student/list_classOfstudent.jsp" %>  
                            <% }
                            %>                           
                        </div>                    

                        <div class="article"> 
                            <p class="infopost">Posted <span class="date">on 20 Nov 2014</span> by 
                                <a href="#">Class</a></p>


                        </div>
                    </div>
                    <div class="fbg">
                        <div class="fbg_resize">
                            <div class="col c1">
                                <h2><span>Image</span> Gallery</h2>
                                <a href="#"><img src="images/1.jpg" width="75" height="75" alt="" class="gal" /></a> <a href="#"><img src="images/2.jpg" width="75" height="75" alt="" class="gal" /></a> <a href="#"><img src="images/3.jpg" width="75" height="75" alt="" class="gal" /></a> <a href="#"><img src="images/4.jpg" width="75" height="75" alt="" class="gal" /></a> <a href="#"><img src="images/5.jpg" width="75" height="75" alt="" class="gal" /></a> <a href="#"><img src="images/6.jpg" width="75" height="75" alt="" class="gal" /></a> </div>
                            <div class="col c2">
                                <h2><span>FAQ</span></h2>
                                <p>Here is some question</p>
                                <ul class="fbg_ul">
                                    <li><a href="#">How to check the marks?</a></li>
                                    <li><a href="#">How to download the assignment?</a></li>
                                    <li><a href="#">How to submit the assignment?  </a></li>
                                    <li><a href="#">How to check the assignments? </a></li>	 
                                    <li><a href="#">How to post a Query?</a></li>
                                </ul>
                            </div>
                            <div class="col c3">
                                <h2><span>Contact</span> Us</h2>
                                <p>Welcome to our! Thanks for believed us, if you want to know more information please contact to us</p>
                                <p class="contact_info"> <span>Address:</span> Ha Noi - Viet Nam<br />
                                    <span>Telephone:</span> 0973948970<br />                                  
                                    <span>Others:</span> 01658146196<br />
                                    <span>E-mail:</span> <a href="#">mail@gmail.com</a> </p>
                            </div>
                            <div class="clr"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="fbg">
                <div class="fbg_resize">
                    <div class="col c1">                       

                    </div>
                    <div class="col c2">                      

                    </div>
                    <div class="col c3">                       

                    </div>
                    <div class="clr"></div>
                </div>
            </div>
            <div class="footer">
                <div class="footer_resize">
                    <p class="lf">&copy; Copyright <a href="#">Class</a>.</p>
                    <p class="rf">Design by <a href="#">Class</a></p>
                    <div style="clear:both;"></div>
                </div>
            </div>
        </div>

    </body>
</html>
